# Project Needs a name ofcourse
project(coverok)

set(CMAKE_BUILD_TYPE "Release")

# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
	${CMAKE_SOURCE_DIR}
	${CMAKE_BINARY_DIR}
	${KDE4_INCLUDES}
	)

# We add our source code here
set(coverok_SRCS coverok.cpp cfg.cpp)

# Now make sure all files get to the right place
kde4_add_plugin(plasma_applet_coverok ${coverok_SRCS})
target_link_libraries(plasma_applet_coverok
                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} -lQtXml)

install(TARGETS plasma_applet_coverok
	DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES plasma-applet-coverok.desktop
	DESTINATION ${SERVICES_INSTALL_DIR})

file(GLOB QM_FILES *.qm)
install(FILES ${QM_FILES}
	DESTINATION ${CMAKE_INSTALL_PREFIX/translations})
